<div class="dux-tools">
  <div class="bread-head">站点地图 <span class="small">用来生成网站的sitemap</span> </div>
  <br>
  <div class="tools-function clearfix">
    <div class="float-left"> <a class="button button-small bg-main icon-list" href="__URL__"> 站点地图</a> </div>
  </div>
</div>
<div class="admin-main">
  <form method="post">
  <div class="panel dux-box">
  <div class="table-responsive">
  <table id="table" class="table table-hover ">
  <tbody>
    <tr>
      <th width="*" colspan="4">生成选项</th>
    </tr>
    <tr>
      <td><a class="button bg-blue button-small" href="javascript:baidu();" type="button">生成百度地图</a></td>
      <td><a class="button bg-blue button-small" href="javascript:google();" type="button">生成谷歌地图</a></td>
      <td><a class="button bg-blue button-small" href="javascript:html();" type="button">生成HTML地图</a></td>
      <td><a class="button bg-blue button-small" href="javascript:robots();" type="button">生成robots.txt</a></td>
    </tr>
  <form action="__URL__/config_save/time-time()" id="form" name="form" method="post">
    <tr>
      <td>自动生成</td>
      <td colspan="3"><?php if($info['config']){ ?>
        <input type="radio" name="status" value="1"  checked="checked" />
        开启
        <input type="radio" name="status" value="0"  />
        关闭
        <?php }else{?>
        <input type="radio"  name="status" value="1" />
        开启
        <input type="radio"  name="status" value="0"  checked="checked"  />
        关闭
        <?php }?></td>
    </tr>
    <tr>
      <td colspan="4"><a href="http://www.baidu.com/search/url_submit.html" target="_blank">百度网站提交入口</a>&nbsp;&nbsp;&nbsp;<a href="http://www.google.com/addurl/" target="_blank">谷歌网站提交入口</a></td>
    </tr>
    <tr>
      <td colspan="4"><button type="submit" class="button bg-main">保存</button></td>
    </tr>
  </form>
  </tbody>
  </table>
</div>
</div>
</form>
</div>
<script type="text/javascript">
//提交表单
saveform({success:function(msg){tip({msg:msg})}});

function baidu(){
	ajaxpost_w({url:'__URL__/baidu',tip:1});
}
function google(){
	ajaxpost_w({url:'__URL__/google',tip:1});
}
function robots(){
	ajaxpost_w({url:'__URL__/robots',tip:1});
}
function html(){
	ajaxpost_w({url:'__URL__/html_sitemap',tip:1});
}
</script>